package com.easy.zhihu.dao;

import com.easy.zhihu.pojo.Answer;
import com.easy.zhihu.pojo.HotWords;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @Packge com.easy.zhihu.dao
 * @Autor linNaibin
 * @Description
 * @Version 1.0
 * @Date 2021/3/16 16:23
 */
public interface AnswerRepository extends JpaRepository<Answer, Long> {

    @Query("select count(id) from Answer where content=?1")
    Integer findNum(String content);
}
